package nz.ac.massey.groupproject.ecs2;

public class EntFactory {
	public static ECSEntity linearBbThingie(int x, int y, int vx, int vy) {
		return new ECSEntity(new Position(x, y), new LinearBouncebackMotion(vx, vy), Appearance.TINY_DOT, new PolygonComponent(new Polygon(-10,-10, 10,-10, 10,0, 0,10, -10, 0)));
	}
	public static ECSEntity orbitingThingie(int cx, int cy, int r, int rate, int angle) {
		return new ECSEntity(new Position(-1, -1), new OrbitMotion(cx, cy, r, rate, angle), Appearance.TINY_DOT);
	}
	public static ECSEntity stationarySpawner(int x, int y, int speed) {
		return new ECSEntity(new Position(x, y), Appearance.SMALL_DOT, new SpawnerComponent(speed));
	}
	public static ECSEntity player(int x, int y) {
		return new ECSEntity(new Position(x, y), new UserControlledMotion(), Appearance.PLAYER);
	}
}
